
# 使用代码控制点击按钮

## 点击按钮
## @button  要点击的鼠标
func click_button(button : BaseButton) -> void:
	# 按下鼠标左键
	var event = InputEventMouseButton.new()
	event.pressed = true
	event.button_index = BUTTON_LEFT
	button._gui_input(event)
	
	# 弹起鼠标左键
	event = InputEventMouseButton.new()
	event.pressed = false
	event.button_index = BUTTON_LEFT
	button._gui_input(event)



